//1.引入异步模块
import  request  from "@/utils/request";
//枚举存储接口地址
enum SpuApi {
    //获取spu列表
    getSpuListApi = '/admin/product',
    //添加spu
    saveSpuInfoApi = '/admin/product/saveSpuInfo',
    //更新spu
    updateSpuInfoApi = '/admin/product/updateSpuInfo',
}
//3.获取数据得函数
//spu列表
export const getSpuListData = (page:number,limit:number,category3Id:number)=>{
    return request.get<any,any>(SpuApi.getSpuListApi+`/${page}/${limit}?category3Id=${category3Id}`)
}
